const state = {
	phone: '',
	address: '',
	city: '',
	username: '',
	islogin: false,
	remark: '',
	scanOrder: '', //扫码id,
	resId: '', //餐厅id
	backRes: false, //根据此状态授权后返回餐厅
}

const mutations = {
	PHONE(state, string) {
		state.phone = string
	},
	REMARK(state, string) {
		state.remark = string
	},
	ADDRESS(state, string) {
		state.address = string
	},
	CITY(state, string) {
		state.city = string
	},
	USERNAME(state, string) {
		state.username = string
	},
	ISLOGIN(state, boolean) {
		state.islogin = boolean
	},
	SCANORDER(state, string) {
		state.scanOrder = string
	},
	RESID(state, string) {
		state.resId = string
	},
	BACKRES(state, boolean) {
		state.backRes = boolean
	},
}

export default {
	state,
	mutations,
}
